<?php Localisation::setPage('header'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Seelies</title>
	
	<script type="text/javascript" src="<?php echo SCRIPTS; ?>jquery.js"></script>
	<script type="text/javascript" src="<?php echo SCRIPTS; ?>jquery.hoverintent.js"></script>
	<script type="text/javascript" src="<?php echo SCRIPTS; ?>menu.js"></script>

	<link rel="stylesheet" media="screen" href="<?php echo STYLES; ?>main.php" type="text/css" />
	<link rel="stylesheet" media="screen" href="<?php echo STYLES; ?>menu.php" type="text/css" />
	<link rel="stylesheet" media="screen" href="<?php echo STYLES; ?>forms.php" type="text/css" />
</head>

<body>

<ul id="menu">
	<li><span>Seelies</span>
		<ul>
			<li><a href="index.php?p=home"><?php echo Localisation::localize('home'); ?></a></li>
			<li><a href="index.php?p=newsletter"><?php echo Localisation::localize('news'); ?></a></li>
			<li><a href="index.php?p=about"><?php echo Localisation::localize('about'); ?></a></li>
			<li><a href="index.php?p=contacts"><?php echo Localisation::localize('contact'); ?></a></li>
		</ul>
	</li>
	<li><span>
		<?php
		if(isset($logged) && $logged == TRUE){
			echo $_player->getName();
		}
		else {
			echo Localisation::localize('account');
		}
		?>
		</span>
		<ul>
			<?php
			if(isset($logged) && $logged == TRUE){
			?>
			<li><a href="index.php?p=logout">
				<?php echo Localisation::localize('logout'); ?>
			</a></li>
			<li><a href="index.php?p=deleteAccount">
				<?php echo Localisation::localize('delete'); ?>
			</a></li>
			<li><a href="index.php?p=changeAccountPreferences">
				<?php echo Localisation::localize('preferences'); ?>
			</a></li>
			<li><a href="index.php?p=newSeelie">
				<?php echo Localisation::localize('new seelie'); ?>
			</a></li>
			<?php
			}
			else {
			?>
			<li><a href="index.php?p=register">
				<?php echo Localisation::localize('register'); ?>
			</a></li>
			<li><a href="index.php?p=login">
				<?php echo Localisation::localize('login'); ?>
			</a></li>
			<?php
			}
			?>
		</ul>
	</li>
	<li><span><?php echo Localisation::localize('help'); ?></span>
		<ul>
			<li><a href="index.php?p=howToPlay">
				<?php echo Localisation::localize('how to play'); ?>
			</a></li>
			<li><a href="index.php?p=FAQ">
				<?php echo Localisation::localize('FAQ'); ?>
			</a></li>
		</ul>
	</li>
	<li class="localisation">
		<a href="index.php?p=setLocalisation&locale=fr&backTo=<?php echo (isset($_GET['p'])) ? $_GET['p'] : 'home' ; ?>"><img src="<?php echo IMAGES.'fr.png' ?>" alt="Traduire le jeu en Français." /></a>
		<a href="index.php?p=setLocalisation&locale=en&backTo=<?php echo (isset($_GET['p'])) ? $_GET['p'] : 'home' ; ?>"><img src="<?php echo IMAGES.'en.png' ?>" alt="Translate the game in  English." /></a>
	</li>
</ul>
<p class="spacer" />

<div id="container">
	
	<img class="arabesqueTopLeft" src="<?php echo IMAGES; ?>arabesquesTopLeft.png" alt="" />
	<img class="arabesqueTopRight" src="<?php echo IMAGES; ?>arabesquesTopRight.png" alt="" />
	
	<h1><a href="index.php?p=home"><span>Seelies</span></a></h1>